import Cookie from 'js-cookie'
const CookieKey = 'VUE_SHOP_TOKEN'

// 设置token
export function setToken (token) {
  Cookie.set(CookieKey, token, { expires: 7 })
}

// 获取token
export function getToken () {
  return Cookie.get(CookieKey)
}

// 删除token
export function removeToken () {
  Cookie.remove(CookieKey)
}
